﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="AdminInfoStaff.aspx.vb"
    Inherits="QLThuVien.AdminInfoStaff1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        
        function changeText(s, e) {
            var str = lbl_gioitinh.GetValue();
            if (str == "1") {
                lbl_gioitinh.SetText("Nam");

            } else {
                lbl_gioitinh.SetText("Nữ");

            }
        }
       
    </script>
    <link href="../assets/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href="../assets/css/mycss.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    
    
    <asp:DataList ID="datalist_info" runat="server">
        <ItemTemplate>
            <div>
                <table>
                    <tbody>
                        <tr>
                            <td>
                                <dx:ASPxImage ID="img_info" runat="server" ShowLoadingImage="true" ImageUrl='<%#Eval("hinh") %>' Width="256px" Height="256px">
                                </dx:ASPxImage>
                            </td>
                            <td class="infostaff">
                                <div>
                                    <b>Họ Và Tên:</b>
                                    <p>
                                        <%# Eval("ten")%>
                                    </p>
                                </div>
                                <div>
                                    <b>Giới Tính:</b>
                                    <p>
                                        <dx:ASPxLabel ID="lbl_gioitinh" runat="server" ClientInstanceName="lbl_gioitinh"
                                            Text='<%#Eval("gioitinh") %>'>
                                            <ClientSideEvents Init="changeText" />
                                        </dx:ASPxLabel>
                                    </p>
                                </div>
                                <div>
                                    <b>Số Điện Thoại:</b>
                                    <p>
                                        <%#Eval("sdt") %></p>
                                </div>
                                <div>
                                    <b>Địa Chỉ:</b>
                                    <p>
                                        <%# Eval("diachi")%></p>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </ItemTemplate>
    </asp:DataList>
   
    </form>
</body>
</html>
